﻿<!doctype html>
 <html >
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="../../../css/common.css">
   <link rel="stylesheet" href="../../../css/main.css">
   <script type="text/javascript" src="../../../js/jquery.min.js"></script>
   <script type="text/javascript" src="../../../js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="../../../js/common.js"></script>
    <script type="text/javascript" src="/js/picUpload.js"></script>
</head>

<body>
  <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">编辑用户</b></div>
            <div class="box_center">
              <form action="/resource/system/user/update" class="jqtransform">
               <table class="form_table pt15 pb15" width="100%" border="0" cellpadding="0" cellspacing="0">
                 <tr>
                  <td class="td_right">登录名：</td>
                  <td class="">
                      <input type="hidden" name="userId" class="input-text lh30" size="40" value="${user.userId}"/>
                    <input type="text" name="username" required class="input-text lh30" size="40" value="${user.username}"/>
                  </td>
				  </tr>
				  <tr>
                  <td class="td_right">密码：</td>
				  <td><input name="password" readonly required class="input-text lh30" size="40" value="${user.password}" /></td>
                </tr>
					   <tr>
						  <td class="td_right">真实姓名：</td>
						  <td class=""> 
							<input type="text" name="realName" required class="input-text lh30" size="40" value="${user.realName}"/>
						  </td>
					  </tr>
					   <tr>
						  <td class="td_right">身份证：</td>
						  <td class=""> 
							<input type="text" name="cardId"  required class="input-text lh30" size="40" value="${user.cardId}"/>
						  </td>
					  </tr>
					   <tr>
						  <td class="td_right">年龄：</td>
						  <td class=""> 
							<input type="text" name="age" required class="input-text lh30" size="10" value="${user.age}"/>
						  </td>
					  </tr>
                   <tr>
						  <td class="td_right">手机号：</td>
						  <td class=""> 
							<input type="text" name="phone" required class="input-text lh30" value="${user.phone}" size="10"/>
						  </td>
					  </tr>
				<tr>
                  <td class="td_right">性别：</td>
                  <td class="">
                    <input type="radio" name="sex"  value="1" <#if (user.sex==1)>checked</#if>  /> 男
                    <input type="radio" name="sex"  value="0" <#if (user.sex==0)>checked</#if>   /> 女
                  </td>
				  </tr>


                <tr >
                  <td class="td_right">部门：</td>
                  <td class="">
					 <span class="f2">
                      <div class="select_border"> 
                        <div class="select_containers "> 
                       <select name="deptId" required class="select">
                            <#list allDept as dept>
                                <option value="${dept.deptId}" <#if (user.deptId=dept.deptId)>selected</#if> >${dept.deptName}</option>
                            </#list>
                        </select>
                        </div> 
                      </div> 
                    </span>
                  </td>
                 </tr>
                 
				  
				  <tr >
                  <td class="td_right">职称：</td>
                  <td class="">
 
                    <span class="fl">
                      <div class="select_border"> 
                        <div class="select_containers "> 
                        <select name="classsifyId"   required class="select">
                            <#list classsify as class>
                                <option value="${class.classsifyId}" <#if (user.classsifyId=class.classsifyId)>selected</#if> >${class.classsifyName}</option>
                            </#list>

                        </select> 
                        </div> 
                      </div> 
                    </span>
                  </td>
                 </tr>
				  <tr >
                  <td class="td_right">角色：</td>
                  <td class="">
 
                    <span class="fl">
                      <div class="select_border"> 
                        <div class="select_containers "> 
                        <select name="roleId" required class="select">

                            <#list allRole as role>
                                <option value="${role.roleId}"  <#if (user.roleId=role.roleId)>selected</#if> >${role.roleName}</option>
                            </#list>

                        </select> 
                        </div> 
                      </div> 
                    </span>
                  </td>
                 </tr>
                 <tr>
                  <td class="td_right">状态：</td>
                  <td class="">
                    <input type="radio" name="status" value="0" checked/> 启用
                    <input type="radio" name="status" value="1"/> 冻结
                  </td>
                 </tr>

                   <tr>
                       <td class="td_right">上传头像：</td>
                       <td class="">
                           <img id="img" width="100px" src="${user.picAddress}">
                           <input type="hidden" id="hiddenPic" value="${user.picAddress}" name="picAddress">
                           <input id="tripPic" onchange="preview(this)" type="file" class="input-text lh30" size="10" />
                           <button type="button" onclick="uploadPic()" class="btn btn-danger">上传<tton>
                                   <span id="picInfo"></span>
                       </td>
                   </tr>
                 <tr>
                   <td class="td_right">&nbsp;</td>
                   <td class="">
                     <input type="submit" name="button" class="btn btn82 btn_save2" value="保存"/>
                    <input type="button" name="button" class="btn btn82 btn_res" onclick="location.href='javascript:history.go(-1)'" value="返回"/>
                   </td>
                 </tr>
               </table>
               </form>
            </div>
          </div>
        </div>
     </div>
   </div> 
</body>

</html>